Fix live test for Kyoto in python#697
Conversation
adf1bee to
f76840f
Compare
|
I like the idea of using linters, and we probably should have been using them for a while. Would you mind adding a commit that passes all python tests through the linter? I'm not super familiar with how the linters work on Python (or the different options, but I'll trust your choice of ruff), but I also assume there might be files to commit that define rules and whatnot? Feel free to commit those as well so that other users can run the linter too. |
Interesting, hadn't thought of adding them to CI. I should've been more specific, but I installed these as neovim plug-ins, so I will have to look into a edit: Nevermind I was able to add a lint step to the CI easily enough. |
badf81e to
d39d27d
Compare
d39d27d to
af17607
Compare
|
Oh funny enough I didn't mean adding the lint check in the CI but just running the other test files through haha. But I actually don't mind having it there either. However I feel like the CI run should probably fail for all other python test files now (except for yours that you ran through the linter). Can you also add another commit that fixes the other test files (does the linter auto-correct the files if it can? Or does it simply error out with the errors and violations when you run it?) |
|
Yeah, it should error out. I checked out master and ran it to get the Kyoto errors, then switched to the feature branch and they passed. I think the other tests were just written well. There is also a way to add a pre commit hook that formats the tests automatically, but couldn't get that Ruff github action to run correctly |
|
Oh awesome! I'm surprised they pass because I don't know the Python standards enough and even when I run Kotlin linters on my code it tends to find a bunch little nits so... surprising that my Python code is up to snuff! That's good. Ready to go then. |
Description
I recently installed
mypyandrufffor python linting and got a bunch of lints on the live Kyoto test:*updatemethod returns an optionallog_taskvariable somehow, which is a log loop that prints to the console.Checklists
All Submissions:
cargo fmtandcargo clippybefore committing